local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

-- lazy.vim的主键设置最好放在这里,要在读取lazy前设置
vim.g.mapleader = " "
vim.g.maplocalleader = " "

require("lazy").setup({
  spec = {
    -- 添加plugins文件中的插件
    { 
        import = "plugins"
    },
    {
        import = "plugins.ui"
    },
    {
        import = "plugins.code"
    },
    {
        import = "plugins.tools"
    },

    {
        import = "plugins.lspdap"
    },
  }
})
